package com.cskaoyan.bean;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * @author stone
 * @date 2022/03/26 10:53
 */
public class User {
    @Length(min = 6)
    String username;
    @Length(min = 6)
    String password;
    @Min(18)
    @Max(70)
    int age;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
